<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--7.判断闰年（闰年的条件是能被4整除，但不能被100整除；或能被400整除。）-->

<script>

    var  year = window.prompt("请输入年份")
    if(year%4==0&&year%100!=0 || year%400==0){
        console.log("闰年")
    }else{
        console.log("平年")
    }


</script>
</body>
</html>